package com.mall.permission.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * URL路径信息
 * </p>
 *
 * @author Darren
 * @since 2022-10-20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("permission")
@ApiModel(value="Permission对象", description="URL路径信息")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 功能名称
     */
    @ApiModelProperty(value = "功能名称")
    @TableField("source_name")
    private String sourceName;

    /**
     * url
     */
    @ApiModelProperty(value = "url")
    @TableField("url")
    private String url;

    /**
     * 匹配方式(0完全匹配 1通配符匹配)
     */
    @ApiModelProperty(value = "匹配方式(0完全匹配 1通配符匹配)")
    @TableField("url_match")
    private Integer urlMatch;

    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    @TableField("service_name")
    private String serviceName;

    /**
     * 请求方式
     */
    @ApiModelProperty(value = "请求方式")
    @TableField("method")
    private String method;


}
